﻿using System;

namespace Budget.Silver.Core.Messages
{
    public class ExceptionMessage : Message<Exception>
    {
        public ExceptionMessage(Exception obj) 
            : base(obj)
        {
        }

        public string FullMessage
        {
            get
            {
                return string.Join(" --- ", Content.Message, Content.InnerException == null ? string.Empty : Content.InnerException.Message);
            }
        }
    }
}